<template>
  <view class="detail-box" @click="selected(item.Gid)">
    <view class="rowid">
      <slot name="sn"> </slot>
    </view>
    <text class="pay">{{ item['MinPay'] || '' }}-{{ item['MaxPay'] || '' }}</text>
    <view class="name">{{ item['WorkName'] || '' }}</view>
    <view style="flex: 1"></view>
    <view class="tags">
      <u-icon color="#f0ad4e" name="man-add-fill"></u-icon> {{ item['CountOfNeed'] || '' }} <span>人</span>
      <view style="width: 10px" />
      <u-icon color="#4cd964" name="home-fill"></u-icon> 包住宿
      <view style="width: 10px" />
      <u-icon color="#dd524d" name="rmb-circle-fill"></u-icon> 福利：{{ item['Award'] || '' }}
      <view style="flex: 1" />
      <u-icon color="#007aff" name="map-fill"></u-icon> {{ item['Location'] || '' }}
      <view style="width: 10px" />
    </view>
    <view style="flex: 1"></view>
    <view class="employ">{{ item['EmployName'] || '' }}</view>
  </view>
</template>

<script>
export default {
  name: 'detail',
  props: {
    item: {
      type: Object,
      default: {},
    },
  },
  data() {
    return {}
  },
  computed: {},
  created() {},
  methods: {
    selected(gid) {
      this.$emit('onclickItem', gid)
    },
  },
}
</script>
<style lang="scss" scoped>
.detail-box {
  position: relative;
  box-sizing: border-box;
  padding: 6px 12px;
  height: 98px;
  width: 100%;
  display: flex;
  flex-direction: column;
  .pay {
    font-size: 28upx;
    font-weight: bold;
    position: absolute;
    right: 6px;
    top: 4px;
    color: $uni-color-error;
  }
  .name {
    font-weight: bold;
    font-size: 32upx;
  }
  .tags {
    color: #bbbbbb;
    display: flex;
    align-content: center;
    font-size: 26upx;
    .icon {
      color: $uni-color-warning;
    }
  }
  .employ {
    font-size: 28upx;
  }
}
.rowid {
  font-size: 11px;
  border-radius: 6px;
  padding: 0px 8px;
  background: #dddddd;
  color: #555555;
  position: absolute;
  bottom: 8px;
  right: 8px;
}
</style>
